//获取当前小程序账号信息
const { miniProgram } = wx.getAccountInfoSync()
//获取当前小程序版本
const { envVersion } = miniProgram

const env = {
  baseUrl: ''
}

switch (envVersion) {
  //开发环境
  case 'develop':
    env.baseUrl = 'http://wawdlplxx.natapp1.cc'
    break;
  //体验版
  case 'trial':
    env.baseUrl = 'http://wawdlplxx.natapp1.cc'
    break;
  //正式版
  case 'release':
    env.baseUrl = 'http://wawdlplxx.natapp1.cc'
    break;
  default:
    env.baseUrl = 'http://wawdlplxx.natapp1.cc'
    break;
}
export { env }